<template>
 <div class="wrap">
    <h1>parent page</h1>
    <button @click="goPage">去子页面</button>
 </div>
</template>

<script>
  export default {
    methods: {
      goPage() {
        this.$router.push({name: 'slideChild'})
      }
    }
  }
</script>

<style lang="less" scoped>
.wrap{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  color: #fff;
  background-color: purple;
}
</style>